package design.patterns.chainmode.staticchain;

/**
 * @Desc:   责任链模式，简版示意测试代码
 * @author: cww
 * @DateTime: 2020-06-12 23:33
 */

public class MainTest {
    static private Handler handler1,handler2;
    public static void main(String[] args) {
        handler1 = new ConcreteHandler();
        handler2 = new ConcreteHandler();
        // 指定 handler1 的下家是 handler2
        handler1.setSuccessor(handler2);
        handler1.handleRequest();
    }
}
